var common={
	replace:function(html,obj){//替换html中的元素
			for(var i in obj){
				if("object"==typeof(obj[i])){
					for(var j in obj[i]){
						html=html.replace("{{"+i+'.'+j+"}}",obj[i][j]);
					}
				}else{
					html=html.replace("{{"+i+"}}",obj[i]);
				}
			}
			return html;
		}
}
